package pl.enigmatic.exception;

public class WrongArgumentsException extends Exception {

	private static final long serialVersionUID = 1L;

	private final static String formatMessage(final String msg) {
		return "Wrongs arguments passed" + (msg == null || "".equals(msg) ? "" : ": " + msg) + ".";
	}

	public WrongArgumentsException(final String message, final Throwable cause) {
		super(formatMessage(message), cause);
	}

	public WrongArgumentsException(final String message) {
		super(formatMessage(message));
	}

	public WrongArgumentsException() {
		this("");
	}

	public WrongArgumentsException(final Throwable cause) {
		this("", cause);
	}

}
